package com.bridgeintelligent.tag.webserver.dim.mgmt.service.catalog;

import com.bridgeintelligent.tag.webserver.dim.mgmt.api.DimRep;

/**
 * Created by JackCheung on 2019/9/9 10:12 PM.
 */
public interface ICatalogService {

    String PARENT_ID = "-";

    DimRep findCatalogList();

    DimRep findShowCatalogList(boolean sensitive,String indexId);

    DimRep findDimTree(boolean sensitive);

    DimRep findIndexDimTree(boolean sensitive,String indexId);

    DimRep del(String id);

    DimRep put(String parentId, String name, Integer number);

    DimRep update(String id, String parentId, String name, Integer number);

    DimRep dimList(String id);

    /**
     * 根据标签目录和索引ID查询对应的标签
     * @param id
     * @param indexId
     * @return
     */
    DimRep indexDimList(String id,String indexId);

    DimRep dimAllList(String id);

    DimRep listInMine();

    DimRep dimListInMine(String id);

    DimRep indexDimListInMine(String id,String indexId);

    /**
     * 根据父id查找其下的标签和目录
     *
     * @return
     */
    DimRep findDimAndCatalog(String parentId);

    String findCatalogByName(String catalogName);

    DimRep indexCombiantion(String indexId);
}
